package pokemon;

public enum Types
{
	BUG, DARK, DRAGON, ELECTRIC, FIGHTING, 
	FIRE, FLYING, GHOST, GRASS, GROUND, 
	ICE, NORMAL, POISON, PSYCHIC, ROCK, 
	STEEL, WATER, FAIRY, VOID;
	
	public static Types getType(String typeName)
	{
		for(Types type : Types.values())
		{
			if(typeName.toUpperCase().equals(type.name()))
			{
				return type;
			}
		}
		return null;
	}
}
